//
// listview
//
.listview {
  padding: $spacer/2 0;
  margin: 0;
  .list-item {
    display: flex;
    flex-direction: row;
    position: relative;
    .item-link {
      padding: $spacer*0.75 $spacer;
      flex: 1;
      display: flex;
      color: $gray-900;
      cursor: pointer;
      i {
        margin-right: $spacer;
        color: $icon-color;
      }
      span {
        flex: 1;
        padding: 0 $spacer;
      }
      &:hover {
        @include gradient-bg($gray-100);
      }
      &.item-header {
        &:hover {
          @include gradient-bg($white);
        }
      }
    }
  }
  .list-item-normal {
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    i {
      font-size: 20px;
      margin-right: $spacer;
      color: $icon-color;
    }
  }
}

// 通知列表组件
.listview-notifications {
  .list-item .item-link i {
    margin: 0 !important;
    color: lighten($primary, 40%) !important;
  }
  .item-link {
    .item-title {
      font-size: $font-size-base;
    }
    .item-subtitle {
      color: $secondary;
      font-size: $font-size-sm;
    }
    &:hover {
      .dot-mark, .dot-unmark {
        visibility: visible;
      }
    }
  }
}

// dropdown 调至小号字体
.dropdown-menu {
  .item-title {
    font-size: $font-size-sm !important;
  }
  .item-subtitle {
    font-size: $font-size-xs !important;
  }
  .mark-all-read {
    font-size: $font-size-sm !important;
  }
}

// 全部标记已读
.mark-all-read {
  color: $secondary;
  @include hover-focus {
    color: $primary;
  }
}

// 未读背景
.bg-unmark {
  background-color: $gray-200 !important;
  @include hover-focus {
    background-color: $gray-300 !important;
  }
}

// 
// 通知 list dot-mark
// 

.dot-mark {
  display: flex;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  border: 2px solid $black;
  visibility: hidden;
  opacity: .5;
  cursor: pointer;
  @include hover-focus {
    border-color: $primary;
  }
}

.dot-unmark {
  display: flex;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background-color: $black;
  visibility: hidden;
  opacity: .5;
  @include hover-focus {
    background-color: $primary;
  }
}